using System;
using System.Collections.Generic;
using System.Text;
using THSLib;
using THSERP.BaseProvider;
using THSERP.BusinessEntities;
namespace THSERP.Modules.Promotion
{
    public class PromotionItemsEntity : ERPModuleItemsEntity
    {
        #region Variables
        protected int _iCPromotionItemID;
        protected String _aAStatus = BusinessObject.DefaultAAStatus;
        protected String _iCPromotionItemNo = String.Empty;
        protected int _fK_ICPromotionID;
        protected int _fK_ICProductID;
        protected double _iCPromotionItemQty;
        protected double _iCPromotionItemUnitPrice;
        //Extra
        THSList<ICPromotionItemDetailsInfo> _lstICPromotionItemDetails;
        //Xtrax properities
        protected double _iCPromotionItemRegularePrice;
        protected double _iCPromotionItemDiscountPrice;
        #endregion

        #region Public properties
        public int ICPromotionItemID
        {
            get { return _iCPromotionItemID; }
            set
            {
                if (value != this._iCPromotionItemID)
                {
                    _iCPromotionItemID = value;
                    //NotifyChanged("ICPromotionItemID");
                }
            }
        }
        public String AAStatus
        {
            get { return _aAStatus; }
            set
            {
                if (value != this._aAStatus)
                {
                    _aAStatus = value;
                    //NotifyChanged("AAStatus");
                }
            }
        }
        public String ICPromotionItemNo
        {
            get { return _iCPromotionItemNo; }
            set
            {
                if (value != this._iCPromotionItemNo)
                {
                    _iCPromotionItemNo = value;
                    //NotifyChanged("ICPromotionItemNo");
                }
            }
        }
        public int FK_ICPromotionID
        {
            get { return _fK_ICPromotionID; }
            set
            {
                if (value != this._fK_ICPromotionID)
                {
                    _fK_ICPromotionID = value;
                    //NotifyChanged("FK_ICPromotionID");
                }
            }
        }
        public int FK_ICProductID
        {
            get { return _fK_ICProductID; }
            set
            {
                if (value != this._fK_ICProductID)
                {
                    _fK_ICProductID = value;
                    //NotifyChanged("FK_ICProductID");
                }
            }
        }
        public double ICPromotionItemQty
        {
            get { return _iCPromotionItemQty; }
            set
            {
                if (value != this._iCPromotionItemQty)
                {
                    _iCPromotionItemQty = value;
                    //NotifyChanged("ICPromotionItemQty");
                }
            }
        }
        public double ICPromotionItemUnitPrice
        {
            get { return _iCPromotionItemUnitPrice; }
            set
            {
                if (value != this._iCPromotionItemUnitPrice)
                {
                    _iCPromotionItemUnitPrice = value;
                    //NotifyChanged("ICPromotionItemUnitPrice");
                }
            }
        }
        public THSList<ICPromotionItemDetailsInfo> ICPromotionItemDetailsList
        {
            get
            {
                return _lstICPromotionItemDetails;
            }
            set
            {
                _lstICPromotionItemDetails = value;
            }
        }
        //Xtra properties
        public double ICPromotionItemDiscountPrice
        {
            get
            {
                return _iCPromotionItemDiscountPrice;
            }
            set
            {
                if (value != this._iCPromotionItemDiscountPrice)
                {
                    _iCPromotionItemDiscountPrice = value;
                }
            }
        }
        public double ICPromotionItemRegularePrice
        {
            get
            {
                return _iCPromotionItemRegularePrice;
            }
            set
            {
                if (value != this._iCPromotionItemRegularePrice)
                {
                    _iCPromotionItemRegularePrice = value;
                }
            }
        }
        #endregion
    }
}
